public class Test5 {
    public void func() {

        class Inter {
            public int data1 = 1;
            public static int data2;

            public void test() {
                System.out.println("我是局部内部类");
            }
            public Inter() {
                System.out.println("局部内部类构造方法");
            }
        }
        Inter inter1 = new Inter();
        inter1.test();
    }
    public static void main(String[] args) {
        Test5 test5  = new Test5();
        test5.func();
    }
}
